#ifndef __ULUI_LOOKUPLATEST_H__
#define __ULUI_LOOKUPLATEST_H__

#include "VSDL_gamestate.h"
#include "ULUI_MenuList.h"
#include "ULUI_InputPad.h"

using namespace std;

class ULUI_LookupLatest : public VSDL_GameState, public VSDL_EventHandler{
private:
	static ULUI_LookupLatest latestNLookup;
	int serialOffset; 
	int nSerials;
	ULUI_MenuList menus;
	ULUI_InputPad pad;
	int selectedMenu;
	int tipWidth;
	int tipHeight;
	int selectedBox;
public:
	//Implementation for VSDL_GameState's pure virtual methods
	void Init();
	void CleanUp();
	void Pause();
	void Resume();
	void Update(VSDL_GameEngine *game);		
	void Draw(VSDL_GameEngine *game);
public:
	//Get instance of ULUI_LookupLatest
	static ULUI_LookupLatest *Instance();
public:
	//Event handlers
	void __HANDLE_EVENT OnKeyDown(SDLKey keysym, unsigned char *keyStates, void *arg);
	void __HANDLE_EVENT OnMouseMove(int button, unsigned char buttonState, int absX, int absY, int relX, int relY, void *arg);
	void __HANDLE_EVENT OnMouseDown(int button, unsigned char buttonState, int absX, int absY, void *arg);
	void __HANDLE_EVENT OnQuit(void *arg);
};


#endif /*__ULUI_LOOKUPLATEST_H__*/
